<@sp.pagehead shiroUserHelper.getCurrentShiroUser().parentSources />
<div class="panel panel-inverse" data-sortable-id="form-stuff-5">
    <div class="panel-heading">
        <h4 class="panel-title">菜单查询</h4>
    </div>
    <div class="panel-body">
        <form id="sourceForm" name="sourceForm" method="post" class="form-inline">
            <div class="form-group m-r-10">
                <input type="text" class="form-control" name="LIKE_name" value="${LIKE_name}"
                       placeholder="菜单名称">
            </div>
            <div class="form-group m-r-10">
                <select name="EQ_parent.id" class="form-control">
                    <#if sourceTree?has_content && sourceTree?exists>
                    <option value="">---上级菜单---</option>
                    <#list sourceTree as st>
                    <option value="${st.id}"
                    <#if EQ_parent_id == st.id> selected</#if>
                >${st.name}</option>
            </#list>
        </#if>
        </select>
    </div>
    <button type="button" class="btn btn-sm btn-primary m-r-5"
            onclick="postDataByFormDisplay('source/list','sourceList','sourceForm')">
        <i class="fa fa-search m-r-5"></i>查 询
    </button>
    <button type="button" class="btn  btn-default btn-sm m-r-5"
            onclick="cleanForm('sourceForm')">
        <i class="fa fa-refresh m-r-5"></i>重置
    </button>
    </form>
</div>
</div>
<hr/>
<div class="panel panel-inverse" data-sortable-id="table-basic-4" id="sourceList">
    <div class="progress progress-striped active">
        <div class="progress-bar" id="progressBar">玩命加载中..</div>
    </div>
</div>
<script type="application/javascript">
    $(function () {
        $("#progressBar").show(function () {
            $("#progressBar").width(Math.round(Math.random() * 90 + 10) + '%');
        });
        postDataByFormDisplay('${rc.contextPath}/source/list', 'sourceList', 'sourceForm');
    });

</script>